package com.todo.strategy.pipeline.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.strategy.online.service.api.pipeline.request.InsertPlanRelationRequest;
import com.todo.strategy.online.service.api.pipeline.request.RemovePlanRelationRequest;
import com.todo.strategy.online.service.api.pipeline.request.UpdatePlanRelationRequest;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author azhebuxing
 * @date 2025/3/1 17:52
 * @description
 */
@FeignClient(name = "todoStrategyOnlineService", url = "http://localhost:18004")
public interface PlanRelationPipelineRemoteService {

    @Operation(summary = "插入计划关联")
    @PostMapping("/api/pipeline/planRelation/insertPlanRelation")
    BizResponse<Boolean> insertPlanRelation(@RequestBody InsertPlanRelationRequest request);

    @Operation(summary = "更新计划关联")
    @PostMapping("/api/pipeline/planRelation/updatePlanRelation")
    BizResponse<Boolean> updatePlanRelation(@RequestBody UpdatePlanRelationRequest request);

    @Operation(summary = "删除计划关联")
    @PostMapping("/api/pipeline/planRelation/removePlanRelation")
    BizResponse<Boolean> removePlanRelation(@RequestBody RemovePlanRelationRequest request);
}
